package net.app.zoneland.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.app.zoneland.system.dao.SysUserDao;
import net.app.zoneland.system.entity.SysUser;
import net.app.zoneland.system.service.ISysUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author LENOVO
 * @CreateTime 2020/12/27 17:46
 * @Version: 1.0
 */
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserDao, SysUser> implements ISysUserService {

    @Override
    public IPage<SysUser> list(Page<SysUser> page, SysUser sysUser) {
        List<SysUser> list = this.baseMapper.list(page, sysUser);
        page.setRecords(list);
        return page;
    }
}
